tmp = input()
arr = input()

# split
arr = arr.split()

# int

## index

# print(arr)  # 100

# arr[0] = int(arr[0])
# arr[1] = int(arr[1])
# arr[2] = int(arr[2])
# arr[3] = int(arr[3])
# arr[4] = int(arr[4])
# arr[5] = int(arr[5])
#
# ...
# arr[99] = int(arr[99])

for i in range(len(arr)):
    arr[i] = int(arr[i])

"""
6
4 3 0 5 1 2
"""

# position = 0,1,2,3,4,5

for position in range(len(arr)):
    # position = 0
    res = 0

    for i in range(position):
        if arr[i] < arr[position]:
            res = res + 1

    print(res, end=" ")
